package com.newgrand.annexserver.storage;

import com.newgrand.annexserver.beans.Dbconfig;

/**
 * @author ：minyang
 * @date ：Created in 2019/9/8 17:00
 * 文件二进制存储上下文
 */
public class StorageContextHolder {

    private static final ThreadLocal<Dbconfig> CONTEXT_HOLDER_DBCONFIG = new ThreadLocal<Dbconfig>();//二进制存储配置

    public static Dbconfig getDbConfig() {
        return CONTEXT_HOLDER_DBCONFIG.get();
    }

    public static void setDbConfig(Dbconfig dbConfig) {
        CONTEXT_HOLDER_DBCONFIG.set(dbConfig);
    }

}
